define( [
		'module',
		'backbone',
		'marionette'
		],
function( module, Backbone, Marionette ) {
	console.log("Loading module " + module.id + " from " + module.uri + "...");

	var SampleView = Marionette.ItemView.extend({
		template : '#sample-template',

		/*
		initialize: function() {
			console.log("Marionette.ItemView: initialize enter");
		},

		render: function() {
			console.log("Marionette.ItemView: render enter");
		}
		*/

		events:{
			"click #newItem":"testMessage" // form data are captured 
			// in the view, cannot be sent to router/controller
		},

		testMessage: function(e) {
			e.preventDefault();
			e.stopPropagation();
			console.log("SampleView: testMessage");
		}
	});
	
	return SampleView;
});
